package ch8.ex3;

import static ch8.print.Print.*;

public class Initialization {
	public static void main(String... args){
		DerivedWithPrint dwp = new DerivedWithPrint();
		dwp.print();
	}
}

abstract class BaseWithPrint{
	public BaseWithPrint(){ print(); }
	public abstract void print();
}

class DerivedWithPrint extends BaseWithPrint{
	private int i = 47;
	public void print() {
		println("i = " + i);
	}
}
